<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
	<title></title>
	<meta charset="utf-8">
	<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<link rel="stylesheet" href="css/ui-btn.css">
	<link rel="stylesheet" href="css/ui-base.css">
	<link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/ui-color.css">
	<link rel="stylesheet" href="css/ui-res.css">
	<link rel="stylesheet" href="css/style.css">
	<script src="js/zy_control.js"></script>
    <script src="js/zy_click.js"></script>
	<script src="js/dis_control.js"></script>
	<script src="js/dis_upload.js"></script>
	<script src="js/config.js"></script>
	<script>
	</script>
</head>
<body class="um-vp c-gra5" ontouchstart>
    <div id="page_0" class="up ub ub-ver c-gra" tabindex="0">
        <!--header开始-->
		<div id="header" class="uh">
			<div class="umh015"></div>
        	<div class="c-blu3 c-m2 t-wh uc-a uba us b-gra uinn6">
        		<a class="btn btn-l btn-a ub ub-ac" ontouchstart="zy_touch('btn-act1')" onclick="closewin();">
        			<div class="ulim">返回</div>
        		</a>
                <h1 class="ut ulev0 ut-s tx-c" tabindex="0" id="atl">最新图片</h1>
				<a class="btn btn-r btn-n ub ub-ac" ontouchstart="zy_touch('btn-act1')" onclick="aalbum();" id="btnr">       
		        	<div class="ulim" id="cbtn"><img src="images/cpic1.png" class="rbtn" /></div>             
		        </a>
			</div>
        </div>
        <!--header结束--><!--content开始-->
        <div id="content" class="ub-f1 tx-l t-bla"></div>
        <!--content结束-->
    </div>
</body>
<script>
zy_init();
var ced = 0;
var params = getStorJson('params');
var view = params.view ;
var albumid = params.albumid;
var myUpload = null;

if(params.albumname) setHtml('atl', params.albumname);

if(view == 'me') {
	setHtml('cbtn','上传');
}
else if(view == 'other'){}
else{
	removeNode('btnr');
}

window.uexOnload = function(type){
    if (!type) {
        zy_con("content", "album_list_content.html", 0, $$("header").offsetHeight);
    }
	window.onorientationchange=window.onresize=function()
	{
		zy_resize("content",0,$$("header").offsetHeight);				
	}
}
function aalbum(){
	if(view == 'me'){
		uploadSelect();
	}else{
		ueppscript('album_list','content','favorite();'); 
	}
}

function cpic(){
	var str = '<img src="images/cpic.png" class="rbtn" />';
	if(ced) str = '<img src="images/cpic1.png" class="rbtn" />';
	setHtml('cbtn',str);
	ced = !ced;
}
function uploadSelect(){
	var ulUrl = home_url+'&mod=spacecp&ac=upload&makefeed=1&uploadsubmit=true&albumid='+ albumid;
	myUpload = new disUpload(ulUrl, 'album', actCb, susCb);
	myUpload.upSelect();
}
function actCb(val){
	
}
function susCb(val){
	ueppscript('album_list', 'content', 'loadList("");');
}
</script>
</html>
